import request from '@/utils/request'


//从配置中获取业务的地址
import {baseUrlConfig} from '@/config/config'
const basePath = baseUrlConfig.businessBaseUrl


export interface PageListType {
    pageNum?: number;
    pageSize?: number;
    condition: {
        flno?: string,
        flio?: string,
        sfaw?: string,
        abrn?: string
    }
}

//获取分页列表
export const flightPageList: (data: PageListType) => Promise<[]> = (data: PageListType) => {
    return request({
        url: basePath + `/pax/flight/find/page`,
        method: 'post',
        data
    })

}

//导出当前页的数据
export const exportPageList: (data:any) => Promise<[]> = (data: any) => {
    return request({

        url: basePath + "pax/flight/export",
        method: 'post',
        responseType: 'blob',
        data
    })
}




